import httpAjax from "../../httpAjax";

/**
 * 获取文章分类列表
 */
 export const GetArtiCates = () => {
  return httpAjax({
      url: `api/artiCate/list`,
      method: "get",
  });
};

/**
 * 根据类型id获取文章列表
 */
 export const GetArticlesByCateId = (id) => {
  return httpAjax({
      url: `api/getArticlesByCateId/${id}`,
      method: "get",
  });
};